package com.sw.bbs.common.constant;

/**
 * bbsConstant
 * 常量
 * @author Johnathan
 **/
public final class BBSConstant {

    /**
     * system date fromat
     */
    public final static String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * yyyy-MM-dd
     */
    public final static String DATE_FORMAT_YYYY_MM_DD = "yyyy-MM-dd";

    /**
     * date timezone
     */
    public final static String DATE_TIMEZONE = "GMT+8";

    /**
     * default response code
     */
    public static final String DEFAULT_RESPONSE_CODE = "0";

    /**
     * success code
     */
    public static final String SUCCESS = "0";

    /**
      * 系统缓存配置
    */
   public static final String SENSEFACE_SYSTEM_SETTINGS_CACHE_KEY = "SenseTime:JointCase:System:Settings:%s";


    /**
     * 用户token存储
     * %s 是token
     * 值是 用户信息
     */
    public static final String ACCESSTOKEN_CACHE_KEY = "User:Token:%s";

    /**
     * 验证码存储
     * %s 是验证码
     * 值是 电话号码
     */
    public static final String CAPTCHA_CACHE_KEY = "User:Captcha:%s";

    /**
     * 过期时间
     */
    public static final Integer CAPTCHATIMEOUT = 60;

    /**
     * 登录口令
    */
   public static final String ACCESSTOKEN = "accessToken";
    /**
     * 用户ID
     * */
    public static final String userId = "user_id";

    /**
     * 用户ID
     * */
    public static final Integer USERTIMEOUT = 60*60*24*30;

    /**
     * 默认图片后缀
     */
   public static final String DEFAULT_IMAGE_SUFFIX = ".jpg";

    /**
     * 文件分隔符
     */
   public static final String POINT_CHAR = ".";
}
